package com.ruoyi.system.basicInformation.mapper;

import com.ruoyi.system.basicInformation.bo.TElectronicFenceEditBo;
import com.ruoyi.system.basicInformation.bo.TElectronicFenceQueryBo;
import com.ruoyi.system.basicInformation.domain.TElectronicFence;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.basicInformation.vo.TElectronicFenceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 电子围栏Mapper接口
 *
 * @author ruoyi
 * @date 2021-05-20
 */
public interface TElectronicFenceMapper extends BaseMapper<TElectronicFence> {
    List<TElectronicFenceVo> selectListForGeom(@Param("query")TElectronicFenceQueryBo bo);

    TElectronicFence selectByIdForGeom(@Param("id") Long id);

    Integer insertByAddBoFortheGeom(TElectronicFence bo);

    void deleteFenceObject(@Param("fenceId") Integer fenceId,@Param("objType") Integer objType);

    Integer updateFenceForGeom(TElectronicFenceEditBo bo);

    TElectronicFence checkIsExistsForXY(@Param("xy")String xy,@Param("fenceId")long fenceId);

    public TElectronicFence selectUserByName(String name);
}
